dxp-ux
Delete PaymentMethod (TMF-670) towards SFDC
CASE 1 Unitary Test
URL
https://[localhost]:[port]/dxp-ux/v1/{businessId}/paymentmethod/{id}
Base URI Parameter
Note: JM, CR, PR, PA is Stub Implementation
Name | Type | M/O | Description |
---|---|---|---|
businessId | string | M | Business unit identifier. Example: ”PR” |
Id | String | M | Payment method ID. |
Headers
name | value | description | required |
---|---|---|---|
X-Correlation-ID | String | This is a unique identifier for the current call chain that can be used to tie together log entries on multiple layers. Example: 644e1dd7-2a7f-18fb-b8ed-ed78c3F92c2b | N |
client_id | String | The client_id identifying the channel. Minimum characters: 5 | Y |
client_secret | String | The client_id identifying the channel. Minimum characters: 5 | Y |
cURL request
curl --location --request DELETE 'https://nonprod.esb.cloud.lla.com/dev/dxp-ux/dxp-ux/v4/PR/paymentMethod/2' \
--header 'X-Correlation-ID: 644e1dd7-2a7f-18fb-b8ed-ed78c3F92cRR' \
--header 'client_id: 12345' \
--header 'client_secret: abcde' \
--header 'Content-Type: application/json' \
--data-raw '{
"account": [
{
"id": "31516278-31514752",
"@type": "BillingAccount",
"relatedParty": [
{
"id": "12401231232",
"@type": "msisdn"
}
]
}
],
"relatedParty": [
{
"name": "Digital",
"@type": "channel"
}
]
}'
Definitions
Name | Type | Required | Description |
---|---|---|---|
account | array | Y | Describes the account details |
account.id | string | Y* | Unique Identifier within the server for the payment method. |
account.@type | string | N | Describes the type of account |
account.relatedParty | array | Y* | Describes account related party |
account.relatedParty.id | string | Y* | Unique Identifier of the related party |
account.relatedParty.@type | string | N | type of the relatted party |
relatedParty | array | Y | Describes related party |
relatedParty.name | string | Y | Describes the name of related party |
relatedParty.@type | string | Y | Describes the type of related party |
[ 200 ]
OK
Response
{
"status": 200,
"description": "payment method delete request received"
}
Definitions
name | value | description | required |
---|---|---|---|
status | number | status code of the response | N |
description | string | status description of the response | N |